{% extends 'base.html' %}   {# extends子模板继承父模板。填写父模板的文件路径 #}

{% block container %}
    <div class="container">
        <div class="row">
            <div class="col-4"></div>
            <div class="col" style="height: 100px">
                <h1>登录</h1>
            </div>
        </div>
        <div class="row">
            <div class="col-4">
            </div>
            <div class="col-4">
                <form action='/user/login/' method='post'>
                    {% csrf_token %}
                    <div class="form-group">
                        <label for="exampleInputEmail1">手机号</label>
                        <input type="number" name="phone" class="form-control" id="exampleInputEmail1"
                               aria-describedby="emailHelp">
                        <small id="emailHelp" class="form-text text-muted"></small>
                    </div>
                    <div class="form-group">
                        <label for="exampleInputPassword1">密码</label>
                        <input type="password" name="pwd" class="form-control" id="exampleInputPassword1">
                    </div>
                    <div class="form-group form-check">
                        <input type="checkbox" class="form-check-input" id="exampleCheck1">
                        <label class="form-check-label" for="exampleCheck1">Check me out</label>
                    </div>
                    <button type="submit" class="btn btn-primary">登录</button>
                </form>
            </div>
        </div>
    </div>

{% endblock container %}


